<header class="layout head padding-small">
	<a href="javascript:pageBack();" class="hBack float-left"></a>
	<h4 class="hTxt float-left text-center text-white">九块邮</h4>
	<a href="javascript:;" id="btnJdkey" class="hHlep float-right"></a>
</header>
<script type="text/javascript">
	$(function(){
		$(window).scroll(function(){
			var $header = $('header');
			if($(window).scrollTop() >= 44){
				$header.hide();
			}else{
				$header.show();
			};
		});
	})
</script>
<div class="layout padding fixed">
	<div class="layout">
		<div class="line">
			<ul class="x12 list-unstyle">
				<form method="get">
					<input type="hidden" name="act" value="activity" />
					<li class="x9"><input type="text" name="keyword" value="<?php echo
						$_GET['keyword']?>" class="input left_yj" placeholder="输入商品名称"></li>
					<li class="x3"><input type="submit" class="button right_yj bg-dot button-block" value="搜 索"/></li>
				</form>
			</ul>
		</div><!--//line-->
	</div>
</div>

<div class="layout"><img class="good-img" src="<?php echo TEMPLATES_PATH;?>/images2/jky.jpg"></div>
<?php
/*if(!empty($output['catlist'])){
    foreach($output['catlist'] as $key=>$val){
        */?><!--
        <div class="bg-white  margin padding radius-big goods-list">
            <h5 style="cursor: pointer;">
                <?php /*echo $key == 'salon'?'美发':'美容' */?>
                <i class="float-right icon-angle-up icon-angle-down"></i>
            </h5>
            <hr>
            <p class="clearfix text-center text-small">
                <?php /*if(!empty($val)){ */?>
                <?php /*foreach($val as $k=>$v){*/?>
                    <a href="index.php?act=official_shop&class_id=<?php /*echo $v['stc_id']; */?>" class="float-left goods_class_padding"><?php /*echo $v['stc_name']*/?></a>
                <?php /*}*/?>
            </p>
            <?php /*}*/?>

        </div>
    <?php /*}*/?>
--><?php /*}*/?>

<?php
if(!empty($output['catlist'])){
    foreach($output['catlist'] as $key=>$val){
        ?>
        <div class="bg-white  margin padding radius-big goods-list">
            <h5>
                <?php echo $key == 'salon'?'美发':'美容'; ?>
                <?php if(!empty($val)){?>
                    <i class="float-right icon-angle-up icon-angle-down"></i>
                <?php }?>
            </h5>
            <?php if(!empty($val)){?>
                <hr>
                <p class="clearfix text-center text-small">
                    <?php foreach($val as $k=>$v){?>
                        <a href="index.php?act=official_shop&class_id=<?php echo $v['stc_id'];?>" class="float-left goods_class_padding"><?php echo $v['stc_name']?></a>
                    <?php }?>
                </p>
            <?php }?>
        </div>
    <?php }?>
<?php }?>


<?php if(false&&!empty($output['list_goods_class'])){?><div class="bg-white  margin padding radius-big text-center">
    <?php foreach($output['list_goods_class'] as $v) {?>
        <a href="index.php?act=activity&stc_id=<?php echo $v['stc_id']?>" class="padding <?php echo $_GET['stc_id']==$v['stc_id']?'text-white bg-dot radius-big':'';?>"><?php echo $v['stc_name']?></a>
    <?php }?>
    </div>
<?php }?>

<?php
if(!empty($output['list']) && is_array($output['list'])){?>
<div class="container">
	<div class="line-small">
		<?php 	foreach($output['list'] as $item){		?>
		<div class="x6 margin-small-top">
			<a href="index.php?act=goods&goods_id=<?php echo $item['goods_id']?>">
				<ul class="list-unstyle padding-small radius-big bg-white clearfix ">
					<li><img class="img-responsive self-motion" src="<?php echo SiteUrl.DS.ATTACH_GOODS.DS.$item['store_id'].DS.$item['goods_image']?>" alt="<?php echo $item['goods_name'];?>" onerror="this.src='<?php echo TEMPLATES_PATH.'/images/touch2013/no_140_140.jpg'?>'" onload="imgheqw(this)"></li>
					<li class="ycyc margin-small-bottom" ><?php echo $item['goods_name'];?></li>
				</ul>
			</a>
		</div>
	<?php }?>
	</div>
</div>
<?php }else{?>
	<div class="noTxt">
		<div class="text-center text-gray padding-large">
			<i class="icon-meh-o"></i>
			<p>暂无此商品（：</p>
		</div>
	</div>
<?php }?>
<?php require_once 'page.php';?>


<script type="text/javascript">
    $(function(){
        /*$("li.new-category-li>a").click(function(){
            var obj = $(this).parent().children().eq(1);
            if(obj.css('display')=='none'){
                $(".new-category2-lst").hide();
                obj.fadeIn();
                $("li.new-category-li>a").removeClass("new-category-a new-on").addClass("new-category-a");
                $(this).addClass("new-category-a new-on");
            }else{
                obj.fadeOut();
                $("li.new-category-li>a").removeClass("new-category-a new-on").addClass("new-category-a");
                $(this).removeClass("new-category-a new-on").addClass("new-category-a");
            }
        })*/
        $('.goods-list h5').css('cursor','pointer');
        //商品名称过长时的处理
        deal_words($('.ycyc'));
    });
</script>